﻿using System;

namespace ConsoleApp34
{
    class Program
    {
        static void Main(string[] args)
        {
            //二维数组
            int[,] md = new int[3, 3];

            for (int column = 0, index = 1; column < 3; column++)
            {
                for (int row = 0; row < 3; row++)
                {
                    md[column, row] = index;
                    index++;

                }

            }


            for (int column = 0; column < 3; column++)
            {
                for (int row = 0; row < 3; row++)
                {
                    Console.Write($"{md[column, row]} ");

                }
                Console.WriteLine();
            }


            Console.ReadKey();
        }
    }
}
